class Solution
{
public:

    void reverseString(vector<char>& s)
    {
        size_t prev = 0;
        size_t rear = s.size() - 1;

        while (prev < rear)
        {
            swap(s[prev], s[rear]);
            prev++;
            rear--;
        }
    }
};